package com.scalar.forecast.forecastEntry.actionCommands;

import com.scalar.forecast.commons.Constants;
import com.scalar.forecast.actionCommands.ActionCommand;

/**
 * User: Sujan Kumar
 * Date: Feb 11, 2005
 * Time: 11:54:31 AM
 */
public class ForecastEntrySearchActionCommandFactory implements Constants
{
   public static ActionCommand getActionCommand( String action )
    {
        if ( ACTION_NEW.equalsIgnoreCase( action ) )
        {
            return new ForecastEntrySearchNewCommand();
        }
       if ( ACTION_LOAD_VALUES.equalsIgnoreCase ( action ) )
       {
           return new ForecastEntrySearchLoadValuesCommand();
       }
       if ( ACTION_SEARCH_BUILD.equalsIgnoreCase ( action ) )
       {
           return new ForecastEntrySearchBuildCommand();
       }
       if ( ACTION_SEARCH_BUILD_LOAD_VALUES.equalsIgnoreCase( action ) )
       {
           return new ForecastEntrySearchBuildLoadValuesCommand();
       }
       if ( ACTION_BUILD_VIEW.equalsIgnoreCase( action ) )
       {
           return new ForecastEntrySearchBuildViewCommand();
       }
       return null;
   }
}
